  <!-- Example table --> <div class="container_12"> 
                <div class="module">
                    <h2><span>Wedding Packages</span></h2>
                    
                    <div class="module-table-body">
                    <div style="margin-top:13px;">
                    <?php
                    if(isset($errMsg)){?>
                    <span class="notification"><?php echo $_MESSESGE[$errMsg];?></span>
                    <?php }?></div>
                        
                        <table id="myTable" class="tablesorter">
                            <thead>
                                <tr>
                                    <th style="width:5%">#</th>
                                    <th style="width:20%">Title</th>
                                    <th style="width:21%">Theme</th>
                                    <th style="width:13%">Booking Days</th>                                    
                                    <th style="width:13%">Booking Amount</th>
                                    <th style="width:15%"></th>
                                </tr>
                            </thead>
                            <tbody>      
                            <?php 
                            $i = 1;
                            foreach ( $records as $row ){  
                                if( $row['status']==2 ) continue; 
                                if( $theme = Wedding::getThemeById($row['theme_id']) ){
                                    $themeName = $theme['theme'];
                                }
                            
                            ?>
                                <tr>                                
                                    <td class="align-center"><?php echo $i++;?></td>
                                    <td><?php echo $row['title'];?></td>
                                    <td><?php echo $themeName; ?></td>
                                    <td><?php echo $row['number_of_days'];?></td>                                    
                                    <td><?php echo $row['booking_amount'];?></td>
                                    <td>
                                    <?php   if($row['status']==1){    ?>
                                        <a href="?action=deactive&id=<?php echo $row['id']?>"><img src="<?php echo _SITE_ADMIN_URL_?>/images/tick-circle.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/tick-circle.gif" width="16" height="16" alt="published" /></a>
                                    <?php   }else{  ?>
                                        <a href="?action=active&id=<?php echo $row['id']?>"><img src="<?php echo _SITE_ADMIN_URL_?>/images/minus-circle.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/tick-circle.gif" width="16" height="16" alt="published" /></a>
                                    <?php   }   ?>
                                        <a href="<?php echo _SITE_ADMIN_URL_?>wedding/wedding_edit.php?id=<?php echo $row['id']?>"><img src="<?php echo _SITE_ADMIN_URL_?>/images/pencil.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/pencil.gif" width="16" height="16" alt="edit" /></a>
                                        <a href="?action=delete&id=<?php echo $row['id']?>" onclick="javascript: return confirm('Please confirm deletion!!');" ><img src="<?php echo _SITE_ADMIN_URL_?>/images/bin.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/bin.gif" width="16" height="16" alt="delete" /></a>
                                    </td>
                                </tr>
                                <?php   }   ?>
                            </tbody>
                        </table>
                        
                        <div class="pager" id="pager">
                            <form action="">
                                <div>
                                <img class="first" src="<?php echo _SITE_ADMIN_URL_?>/images/arrow-stop-180.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/arrow-stop-180.gif" alt="first"/>
                                <img class="prev" src="<?php echo _SITE_ADMIN_URL_?>/images/arrow-180.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/arrow-180.gif" alt="prev"/> 
                                <input type="text" class="pagedisplay input-short align-center"/>
                                <img class="next" src="<?php echo _SITE_ADMIN_URL_?>/images/arrow.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/arrow.gif" alt="next"/>
                                <img class="last" src="<?php echo _SITE_ADMIN_URL_?>/images/arrow-stop.gif" tppabs="<?php echo _SITE_ADMIN_URL_?>/images/arrow-stop.gif" alt="last"/> 
                                <select class="pagesize input-short align-center">
                                    <option value="10" selected="selected">10</option>
                                    <option value="20">20</option>
                                    <option value="30">30</option>
                                    <option value="40">40</option>
                                </select>
                                </div>
                            </form>
                        </div>
                        <!-- <div class="table-apply">
                            <form action="">
                            <div>
                            <span>Apply action to selected:</span> 
                            <select class="input-medium">
                                <option value="1" selected="selected">Select action</option>
                                <option value="2">Publish</option>
                                <option value="3">Unpublish</option>
                                <option value="4">Delete</option>
                            </select>
                            </div>
                            </form>
                        </div> -->
                        <div style="clear: both"></div>
                     </div> <!-- End .module-table-body -->
                </div> <!-- End .module -->
                </div>